<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Jedrzej\Pimpable\PimpableTrait;


class SystemStore extends Model

{
    use HasFactory;
    use PimpableTrait;
    use SoftDeletes;



    /**
     *可批量赋值的字段
     */
    public $fillable = [
        'name',
        'introduction',
        'phone',
        'address',
        'detailed_address',
        'image',
        'oblong_image',
        'latitude',
        'longitude',
        'day_time',
        'valid_time',
        'status'
    ];


    /**
     * 可搜索的字段
     */
    public $searchable = [
        'name',
        'introduction',
        'phone',
        'address',
        'detailed_address',
        'status'
    ];



    /**
     * 默认倒序排序
     */
    protected $defaultSortCriteria = ['id,desc'];

}
